<?php $this->adminCurrentSubmenu(); ?>
<table class="admin-table">
	<tr>
		<th width="20"><?php echo $this->translate('ID'); ?></th>
		<th><?php echo $this->translate('login'); ?></th>
		<th><?php echo $this->translate('firstname'); ?></th>
		<th><?php echo $this->translate('lastname'); ?></th>
		<th width="50"><?php echo $this->translate('role'); ?></th>
		<th width="20"><?php echo $this->translate('active'); ?></th>
		<th width="10"><?php echo $this->translate('actions'); ?></th>
	</tr>
	<?php foreach ($this->pager->execute() as $item) {?>
	<tr>
		<td align="center"><?php echo $item->id; ?></td>
		<td><?php echo $item->login; ?></td>
		<td><?php echo $item->firstname; ?></td>
		<td><?php echo $item->lastname; ?></td>
		<td><?php echo $this->translate($item->Role->name); ?></td>
                <td style="text-align: center;"><input type="checkbox" <?php if($item->active) echo 'checked="checked"' ?> disabled="disabled" /></td>
		<td align="center" nowrap="nowrap">
			<a class="edit-item" href="<?php echo $this->url(array('action'=>'edit-user','module'=>'user', 'id'=>$item->id));?>">
				<?php echo $this->translate('edit'); ?>
			</a>&nbsp;
			<a  class="delete-item" href="<?php echo $this->url(array('action'=>'delete-user','module'=>'user', 'id'=>$item->id));?>">
				<?php echo $this->translate('delete'); ?>
			</a>
		</td>
	</tr>
	<?php } ?>
</table>